<!--
 * @Description: 盒子
 * @Author: rendc
 * @Date: 2022-09-22 09:04:29
 * @LastEditors: rendc
 * @LastEditTime: 2022-09-22 09:27:22
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>盒子</title>
  <style>
    #main,#main1{
      /* box-sizing: border-box; */
      /* box-sizing: content-box; */
      width: 100px;
      height: 100px;
      border: 1px solid gold;
      line-height: 100px;
      text-align: center;
      margin: 20px;
      padding: 10px;
    }
  </style>
</head>
<body>
  <div id="main">main</div>
  <div id="main1">main1</div>
</body>
</html>